
#include <windows.h>
#include "gen_disp.h"

const char* gen_disp::text[] =
{
    //"Load an object (tgt,ply)",
    "Load an object from ply file",
    "Load an object from:  ",
    "Simpl. method:",           //2
        "quadric",
        "quadric (t area)",
        "Melax",
        "shortest edge",
    "Parameters:",              //7
        "t %: ",
        "t:   ",
    "LOD:",                     
        "orig",                 //11
        "1",
        "2",
        "3",
        "4",
        "5",
        "6",
        "7",
        "8",
    "Collapse edges!",           //20
    "Split vertices!",
    "Save!",
    "Save as: ",
};

const int gen_disp::yinc_text[] =
{
    0, // both
    0, // rely on reshape()
    -30,
        -15,
        -15,
        -15,
        -15,
    -30,
        -15,
        -15,
    -30,
        -15,
        -15,
        -15,
        -15,
        -15,
        -15,
        -15,
        -15,
        -15,
    -35,
    -15,
    -30,
    -30,
};

const int gen_disp::xoffset_text[] = 
{
    0,
    0,
    0,
        20,
        20,
        20,
        20,
    0,
        20,
        20,
    0,
        50,
        50,
        50,
        50,
        50,
        50,
        50,
        50,
        50,
    0,
    0,
    0,
    0,
};

bool gen_disp::show_text[] =
{
    true,
    false,
    false,
        false,
        false,
        false,
        false,
    false,
        false,
        false,
    false,
        false,
        false,
        false,
        false,
        false,
        false,
        false,
        false,
        false,
    false,
    false,
    false,
    false,
};

bool gen_disp::menu_pos[] =
{
    true,
    false,
    false,
        false,
        false,
        false,
        false,
    false,
        false,
        false,
    false,
        false,
        false,
        false,
        false,
        false,
        false,
        false,
        false,
        false,
    false,
    false,
    false,
    false,
};

const int gen_disp::text_count = 24;



const short gen_disp::START_ACT_MENU_POS = 0;
//const bool gen_disp::HELP_SHOWED_ON_START = false;



const char* gen_disp::help_str[] =
{
    "escape - go to the main menu",
    "  g    - collapse edges",
    "  u    - split vertices",
    "",
    "  f    - show wireframe/solid",
    "  S    - smooth/flat shading",
    "  l    - turn on/off the lights",
    "  d    - display/hide the object",
    " w/up  - go up in the menu",
    "s/down - go down in the menu",
    "",
    "with LMB pressed mouse movement rotates the scene",
    "with RMB pressed mouse movement rescales the scene",
};

const int gen_disp::help_count = 13;
